package com.quanyue.haircut.shop.mapper;

import com.quanyue.haircut.domain.entity.Coupon;
import com.vhuomai.mybatis.mapper.auto.AutoMapper;
import com.vhuomai.mybatis.mapper.page.Page;
import com.vhuomai.mybatis.mapper.page.PageRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CouponMapper extends AutoMapper <Coupon, Integer> {
    Page <Coupon> findByMerchantNoValid(@Param("request") PageRequest request, @Param("merchantNo") Integer merchantNo);
}
